Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Editing Movies / Low-Level Movie-Editing Functions


ScaleMovieSegment

The ScaleMovieSegment function changes the duration of a segment of a movie. The Movie Toolbox scales the segment to accommodate the new duration.

pascal OSErr ScaleMovieSegment (Movie theMovie, TimeValue in,
                                 TimeValue oldDuration, 
                                 TimeValue newDuration);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
in
Specifies the start of the segment. The oldDuration parameter specifies the segment's duration. This time value must be expressed in the movie's time scale.
oldDuration
Specifies the duration of the segment in the source movie. This time value must be expressed in the movie's time scale.
newDuration
Specifies the new duration of the segment. This time value must be expressed in the movie's time scale. The function alters the segment to accommodate the new duration.
ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
invalidDuration-2014This duration value is invalid
invalidTime-2015This time value is invalid
Memory Manager errors


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996